package www.sofn.com.accounts.domain;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

@Accessors(chain = true)
@Data
@Schema(description = "登录信息")
public class LoginInfoVO {
    @Schema(description = "账号")
    @Length(min = 4,max = 20,message = "账号只能是{min}~{max}个字符")
    @NotBlank(message = "账号不能为空"  )
    private String username;
    @Schema(description = "密码")
    @Length(min = 6,max = 32,message = "密码只能是{min}~{max}个字符")
    @NotBlank(message = "密码不能为空")
    private String password;
    @NotBlank(message = "验证码Id")
    @Schema(description = "验证码Id")
    private String captchaId;
    @NotBlank(message = "验证码不能为空")
    @Schema(description = "验证码")
    @Length( max = 6,message = "验证码不能大于{max}个字符")
    private String captcha;
}
